<?php

Configure::write('adminEmailAccount', array(
		'hduongdmit@gmail.com'
	)
);

/**
 * Config upload image
 * 'big' => array('resize: true/false' ,'width', 'height')
 */
Configure::write(array(
	'upload_image' => array(
		'sizeLimit' => '1048576',//1 MB = 1 * 1024 * 1024
		'extensions' => array('jpeg', 'gif', 'jpg', 'png'),
		'big' => array(true ,'200', '200'),
		'small' => array(true, '120', '120'),
		'thumb' => array(true, '80', '80'),
	)
));

Configure::write(array(
	'category_type' => array(
		'products' => 'Sản phẩm',
		'news' => 'Tin tức',
		//'services' => 'Services',
		'static' => 'Trang tĩnh',
	),
	'banner_type' => array(
		'background' => 'Ảnh background',
		'header' => 'Banner header',
		'home' => 'Banner home',
		'left' => 'Banner left',
	),
	'target' => array(
		'_self' => 'Cùng cửa sổ',
		'_blank' => 'Cửa sổ mới',
	)
));

//khai bao cac field cua bang theo cat_type
$table_field = array();
$table_field["news"]    = array("news", "id", "category_id", "name", "create_time", "iData", "active", "del_flg", "new_rewrite");
$table_field["static"]  = array("statics", "id", "category_id", "sta_name", "create_time", "iData", "active", "del_flg", "rewrite");

Configure::write(array(
	'table_field' => $table_field
));


//Configure::write('baseUrl', 'http://local.com');
